package com.cros.files;

import java.io.BufferedReader;
import java.util.ArrayList;

public class Main {
	
	
	public static void main(String argv[]){
		try{
			/*
			BufferedReader bf = FileHelper.readFile("C:\\Users\\Jesus\\Documents\\sorteo\\melate.txt");
			String strLine;
			String linea;
			StringBuilder temporal = new StringBuilder();
			ArrayList<Melate> sorteos = new ArrayList<Melate>();
			Melate melate;
			String arreglo [];
			System.out.println("br:"+bf);
			while ((strLine = bf.readLine()) != null) {
				if(strLine.length()>0){
					melate = new Melate();
					linea=strLine.substring(0,1);
					 
					 if(linea.equals("s")){
						melate.setSorteo(strLine.substring(1,strLine.length()));
						System.out.println("SORTEO:"+melate.getSorteo());
					 }else if(linea.equals("f")){
						melate.setFecha(strLine.substring(1,strLine.length()));
						System.out.println("FECHA:"+melate.getFecha());
					 }else if(linea.equals("n")){
						 linea=strLine.substring(1,strLine.length()-3);
						 arreglo=strLine.split("a");
						 melate.setAdicional(arreglo[1]);
						 System.out.println("NUMEROS:"+linea);
						 System.out.println("ADICIONA:"+melate.getAdicional());
					 }
					 sorteos.add(melate);
				}
				 
			  }
			  */
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

}
